class ModelwindowController < ApplicationController



    def modelwindow_view_university
     if(params[:check]=="alpha")
      @universities =  University.find(:all, :order=>"name", :include => :city)
      @val = "alpha"

    else
      @val="cities"
    end
    @cities = City.find(:all , :order =>"name")
     
    end

    def forpost_view_university
      modelwindow_view_university

    end

    def forcategory_view_university
        @category=Category.find_by_stripped_name(params[:id])
        modelwindow_view_university
    end
  def search_view_university
        
        modelwindow_view_university
    end
   
end
